package ${basePackage}.dao;

import ${basePackage}.model.${className};
import ${basePackage}.model.${className}Example;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * @content ${className}Dao接口
 * 
 * @date ${createDate}
 * 
 * @author OprCalf
 * 
 */

@Mapper
public interface I${className}Dao {

	long countByExample(${className}Example example);

	int deleteByExample(${className}Example example);

	int deleteByPrimaryKey(Integer id);

	int insert(${className} record);

	int insertSelective(${className} record);

	List<${className}> selectByExample(${className}Example example);

	${className} selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") ${className} record,
			@Param("example") ${className}Example example);

	int updateByExample(@Param("record") ${className} record, @Param("example") ${className}Example example);

	int updateByPrimaryKeySelective(${className} record);

	int updateByPrimaryKey(${className} record);
}